﻿<phone:PhoneApplicationPage 
    x:Class="MSHelpMe.PhotoCapture"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:phone="clr-namespace:Microsoft.Phone.Controls;assembly=Microsoft.Phone"
    xmlns:shell="clr-namespace:Microsoft.Phone.Shell;assembly=Microsoft.Phone"
    xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
    xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
    FontFamily="{StaticResource PhoneFontFamilyNormal}"
    FontSize="{StaticResource PhoneFontSizeNormal}"
    Foreground="{StaticResource PhoneForegroundBrush}"
    SupportedOrientations="Landscape" Orientation="LandscapeLeft"
    mc:Ignorable="d" d:DesignHeight="480" d:DesignWidth="800"
    shell:SystemTray.IsVisible="False">

    <!--LayoutRoot is the root grid where all page content is placed-->
    <Grid x:Name="LayoutRoot" Background="Transparent">
        <Grid.ColumnDefinitions>
            <ColumnDefinition Width="640"/>
            <ColumnDefinition Width="*"/>
        </Grid.ColumnDefinitions>
<Grid>
        <Canvas x:Name="viewfinder" Tap="viewfinder_Tap">
            <Canvas.Background>
                <VideoBrush x:Name="viewfinderBrush"/>
            </Canvas.Background>
					<TextBlock x:Name="focusBrackets" Text="[     ]" Style="{StaticResource PhoneTextExtraLargeStyle}" FontSize="53.333" Canvas.Left="268" Margin="0" Canvas.Top="196" />
        </Canvas>
        <Image x:Name="imgPreview" />
		<Canvas x:Name="words" Width="640" Height="480"/>
		<TextBlock x:Name="txtTip" Text="Tap a word to erase it." HorizontalAlignment="Left" VerticalAlignment="Bottom" Style="{StaticResource PhoneTextAccentStyle}" />
		<ProgressBar x:Name="scanProgress" IsIndeterminate="False"/>
		<TextBlock x:Name="txtError" Text="Error" Style="{StaticResource PhoneTextLargeStyle}" VerticalAlignment="Center" HorizontalAlignment="Center"/>
        </Grid>
<Grid  Grid.Column="1">
	<Grid.RowDefinitions>
		<RowDefinition Height="0.5*"/>
		<RowDefinition Height="128"/>
		<RowDefinition Height="0.5*"/>
	</Grid.RowDefinitions>
	<Button x:Name="btnCapture" BorderThickness="0" Width="128" Height="128" Click="btnCapture_Click" VerticalAlignment="Bottom" >
		<Button.Background>
			<SolidColorBrush Color="{StaticResource PhoneAccentColor}"/>
		</Button.Background>
		<Button.Content>
			<Image Source="/Images/camera.png" Width="72" Height="72" />
		</Button.Content>
	</Button>
	<Button x:Name="btnShutter" BorderThickness="0" Click="btnShutter_Click" Grid.Row="1" Width="128" Height="128" >
		<Button.Background>
			<SolidColorBrush Color="{StaticResource PhoneAccentColor}"/>
		</Button.Background>
				<Button.Content>
			<Image Source="/Images/capture.png" Width="72" Height="72" />
		</Button.Content>
	</Button>
	<Button x:Name="btnAccept" Width="128" BorderThickness="0" Height="128" Click="btnAccept_Click" Grid.Row="2" VerticalAlignment="Top">
		<Button.Background>
			<SolidColorBrush Color="{StaticResource PhoneAccentColor}"/>
		</Button.Background>
				<Button.Content>
			<Image Source="/Images/accept.png" Width="72" Height="72" />
		</Button.Content>
	</Button>
</Grid>
    </Grid>


    <!--Sample code showing usage of ApplicationBar-->
    <!--<phone:PhoneApplicationPage.ApplicationBar>
        <shell:ApplicationBar IsVisible="True" IsMenuEnabled="True">
            <shell:ApplicationBarIconButton IconUri="/Images/appbar_button1.png" Text="Button 1"/>
            <shell:ApplicationBarIconButton IconUri="/Images/appbar_button2.png" Text="Button 2"/>
            <shell:ApplicationBar.MenuItems>
                <shell:ApplicationBarMenuItem Text="MenuItem 1"/>
                <shell:ApplicationBarMenuItem Text="MenuItem 2"/>
            </shell:ApplicationBar.MenuItems>
        </shell:ApplicationBar>
    </phone:PhoneApplicationPage.ApplicationBar>-->

</phone:PhoneApplicationPage>
